import {Pipe, PipeTransform} from '@angular/core';
import {AddStaffTrack, TrackStatus} from "../../../model/pages/activity/roster-list/roster-list-item.model";

@Pipe({
    name: 'rosterTracksPipe',
})
export class RosterTracksPipe implements PipeTransform {

    transform(status, classify) {
        if (classify) {
            switch (status) {
                case AddStaffTrack.notFollow:
                    return '未跟进';
                case AddStaffTrack.process:
                    return '跟进中';
                case AddStaffTrack.notIntend:
                    return '暂不跟进';
                default:
                    return '';
            }
        }
        switch (status) {
            case TrackStatus.notFollow:
                return '未跟进';
            case TrackStatus.contacted:
                return '已拨打';
            case TrackStatus.notContacted:
                return '未接通';
            case TrackStatus.notInterested:
                return '客户不感兴趣';
            case TrackStatus.waitCallback:
                return '待回电';
            case TrackStatus.overInterview:
                return '已面谈';
            case TrackStatus.overPrint:
                return '已打印计划书';
            case TrackStatus.complete:
                return '已完成';
            default:
                return '';
        }
    }
}
